package com.xzj.springmvc.annotation;

import com.xzj.spring.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj.springmvc.annotation
 * @ClassName: PostGetMapping
 * @Author: xzj
 * @Description: 自定义注解 支持 get和post请求
 * @Date: 2022/7/18 12:56
 * @Version: 1.0
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@RequestMapping(
        method = {RequestMethod.GET,RequestMethod.POST}
)
public @interface PostGetMapping {
    @AliasFor(
            annotation = RequestMapping.class
    )
    String[] value() default {};
}
